package br.uniriotec.pm.domain.comparator;

import java.util.Comparator;

import br.uniriotec.pm.domain.RegistroPreco;

public class RegistroPrecoDataComparator implements Comparator<RegistroPreco> {

	@Override
	public int compare(RegistroPreco o1, RegistroPreco o2) {
		return o1.getData().compareTo(o2.getData());
	}
}
